//首页api
import http from '@/utils/http'

//  获取热门品牌推荐
export function homeBrandApi (limit = 6) {
  return http({
    url: '/home/brand',
    method: 'get',
    params: {
      limit
    }
  })
}

//获取广告区域banner图
export function homeBannerApi (distributionSite) {
  return http({
    url: '/home/banner',
    method: 'get',
    params: {
      distributionSite
    }
  })
}

//新鲜好物
export function homeNewApi (limit = 4) {
  return http({
    url: '/home/new',
    method: 'get',
    params: {
      limit
    }
  })
}

//人气推荐
export function homeHotApi () {
  return http({
    url: '/home/hot',
    method: 'get',
  })
}

//产品区域
export function homeGoodsApi () {
  return http({
    url: '/home/goods',
    method: 'get'
  })
}

//最新专题
export function homeApecialApi (limit=3) {
  return http({
    url: '/home/special',
    method: 'get',
    params:{limit}
  })
}
